﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Contexts;
using System.Text;
using Model.BusinessLogic.PhysicalData;
using Model.Manager;
using Model.Manager.DataBase;

namespace BML.Infrastructure.Implement
{
    /// <summary>
    /// 信息管理
    ///     信息
    ///     关联商品
    /// </summary>
    public class BaseInfoOp : BaseOperator
    {
        public IList<Info> QueryKeyWord(String keyWord)
        {
            using (IDbContext db = ContextFactory.GetBlConn())
            {
                return db.Queryable<Info>().Where(m => m.Context.IndexOf(keyWord) != -1).ToList();
            }
        }

        public IQueryable CreateOrUpdate(bool isSet)
        {
            using (IDbContext db = ContextFactory.GetBlConn())
            {
                return db.Queryable<BaseOperator>().ToList().AsQueryable();
            }
        }

        /// <summary>
        ///     
        /// </summary>
        public void CreateOrUpdate()
        {

        }




    }
}
